/**
 * Created by kangdaye on 16/6/5.
 */
app.controller('withdrawListAuditDialogCtr',["$scope","$rootScope","getData","withdrawListService", function($scope,$rootScope,getData,withdrawListService) {
    $scope.detailData = {};
    $scope.getData = angular.extend({
        agreed : 'false',
        auditlog : ''
    },getData);

    withdrawListService.detail({
        id : getData.uid
    },function(data){
        $scope.detailData = data.data;
    });

    $scope.submit = function(){
        withdrawListService.audit($scope.getData,function(data){
            // $scope.closeThisDialog();  //dialog 关闭
            location.reload();
        });
    };
}]);
